SUCCESS = 0
ERROR = 1
USERNAME_IS_EXISTED = 1001
USERNAME_NOT_EXIST = 1002
USER_Banned = 1003
INCORRECT_PASSWORD = 1004
INACTIVE_USER = 1005
TOKEN_EXPIRED = 1006
INVALID_TOKEN = 1007
PERMISSION_DENIED = 1008
INVALID_FILE_TYPE = 2001

# 新增 task 相关错误码
TASK_NOT_FOUND = 3001
TASK_ALREADY_EXISTS = 3002
TASK_CREATION_FAILED = 3003
INVALID_TASK_STATUS = 3004

# 定义业务码对应的错误信息
ERROR_MESSAGES = {
    SUCCESS: "Success",
    ERROR: "Error",
    USERNAME_IS_EXISTED:"Username already exists",
    USERNAME_NOT_EXIST: "Username does not exist",
    USER_Banned:"User is banned",
    INCORRECT_PASSWORD: "Incorrect password",
    INACTIVE_USER: "Inactive user",
    TOKEN_EXPIRED: "Token expired",
    INVALID_TOKEN: "Invalid token",
    PERMISSION_DENIED: "Permission denied",
    INVALID_FILE_TYPE: "Invalid file type",
     TASK_NOT_FOUND: "Task not found",
    TASK_ALREADY_EXISTS: "Task already exists",
    TASK_CREATION_FAILED: "Task creation failed",
    INVALID_TASK_STATUS: "Invalid task status"
}

